<?php
/**
 * Junction_Sql_Column
 * 
 * Models a database column
 * 
 * @author Patrick J. Mizer <patrick.mizer@gmail.com>
 */ 
 
class Junction_Sql_Column
{
	/**
	 * Table of which column is a part
	 * 
	 * @var Junction_Sql_Table
	 */
	private $_table;
	
	/**
	 * Column name
	 * 
	 * @var string column name
	 */
	private $_name;
	
	/**
	 * Junction_Sql_Column Constructor
	 * 
	 * @param string column name
	 * @param Junction_Sql_Table table
	 */
    public function __construct($name, $table) 
    {
    	$this->_table = $table;
    	$this->_name  = $name;
    }
    
    /**
     * Getter for column name
     * 
     * @return string name
     */
    public function getName()
    {
    	return $this->_name;
    }
    
    /**
     * Getter for table
     * 
     * @return Junction_Sql_Table table
     */
    public function getTable()
    {
    	return $this->_table;
    }
}
?>